<?xml version="1.0" encoding="UTF-8"?>
<as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd">
    <namespaces>
        <Namespace>
            <prefix>er</prefix>
            <uri>urn:cgi:xmlns:GGIC:EarthResource:1.1</uri>
        </Namespace>
        <Namespace>
            <prefix>gml</prefix>
            <uri>http://www.opengis.net/gml</uri>
        </Namespace>
    </namespaces>
    <sourceDataStores>
        <DataStore>
            <id>er_Commodity</id>
            <parameters>
                <Parameter>
                    <name>directory</name>
                    <value>file:./</value>
                </Parameter>
            </parameters>
        </DataStore>
    </sourceDataStores>
    <targetTypes>
        <FeatureType>
            <schemaUri>http://www.earthresourceml.org/earthresourceml/1.1/xsd/earthResource.xsd</schemaUri>
        </FeatureType>
    </targetTypes>
    <typeMappings>
        <FeatureTypeMapping>
            <sourceDataStore>er_Commodity</sourceDataStore>
            <sourceType>Nillable</sourceType>
            <targetElement>er:Commodity</targetElement>
            <attributeMappings>
                <AttributeMapping>
                    <targetAttribute>
						er:Commodity
					</targetAttribute>
                    <idExpression>
                        <OCQL>strConCat('er.commodity.',GEOLOGICUNIT_ID)</OCQL>
                    </idExpression>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>
			         	gml:name
  		            </targetAttribute>
                    <sourceExpression>
                        <OCQL>NAME_VALUE</OCQL>
                    </sourceExpression>
                    <ClientProperty>
                        <name>codeSpace</name>
                        <value>NAME_CODESPACE</value>
                    </ClientProperty>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>
			         	er:commodityRank
  		            </targetAttribute>
                    <sourceExpression>
                        <OCQL>COMMODITYRANK</OCQL>
                    </sourceExpression>
                </AttributeMapping>
            </attributeMappings>
        </FeatureTypeMapping>
    </typeMappings>
</as:AppSchemaDataAccess>
